package com.lims.enums;


import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum TestEnum {
    /**
     * 类型
     */
    one(1,"描述"),
    ;

    private Integer type;
    private String desc;

    public static String getDesc(String type){
        if(StrUtil.isBlank(type)){
            return null;
        }
        for (TestEnum e : TestEnum.values()) {
            if (e.getType().equals(type)) {
                return e.getDesc();
            }
        }
        return null;
    }
}
